package com.example.zhaohang.nolibrealnicespinner;

import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.zhaohang.libar.NiceSpinner;

import java.util.Arrays;
import java.util.LinkedList;

public class MainActivity extends AppCompatActivity {

    private NiceSpinner mSpinner;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        LinkedList<String> data=new LinkedList<>(Arrays.asList("Zhang", "Phil", "@", "CSDN"));
        mSpinner = (NiceSpinner) findViewById(R.id.nicespinner);
        mSpinner.setTextColor(Color.GREEN);
        mSpinner.attachDataSource(data);
    }
}
